package com.zhang.server.mapper;

import com.zhang.server.controller.request.CategoryPageRequest;
import com.zhang.server.entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {
    List<Category> list();

    List<Category> listByCondition(CategoryPageRequest categoryPageRequest);

    void save(Category admin);

    Category getById(Integer id);

    void update(Category admin);

    void delete(Integer id);
}
